Skip to content

T006: Parent trust walk — skip writes when parent trusted#18

Merged
grobomo merged 3 commits intomainfrom
015-T006-parent-trust
Apr 6, 2026
Merged

T006: Parent trust walk — skip writes when parent trusted#18
grobomo merged 3 commits intomainfrom
015-T006-parent-trust

Conversation

@grobomo
Copy link
Copy Markdown
Owner

@grobomo grobomo commented Apr 6, 2026

Summary

  • ensure_workspace_trusted() now walks parent directories before writing to ~/.claude.json
  • If any ancestor path has hasTrustDialogAccepted: true, the child is already covered — no write needed
  • Reduces ~/.claude.json bloat: one trusted parent dir replaces dozens of per-project entries
  • Updated CLAUDE.md docs with pre-trust phase description, test count to 70
  • 70 tests passing

Test plan

  • python scripts/test.py — 70 passed, 0 failed
  • bash scripts/test/test-T006-parent-trust.sh — parent walk logic verified
  • Added ProjectsCL1 parent trust to ~/.claude.json — all child projects auto-trusted

grobomo added 3 commits April 5, 2026 23:25
Claude Code walks parent directories when checking trust. Updated
ensure_workspace_trusted() to check ancestors before writing, avoiding
unnecessary per-project entries when a parent dir is already trusted.
@grobomo grobomo merged commit b2d86f1 into main Apr 6, 2026
1 check passed
@grobomo grobomo deleted the 015-T006-parent-trust branch April 6, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant